package com.zx.flow.api.execute.request;

import com.zx.flow.api.dict.FlowDict.Event;
import com.zx.flow.api.execute.model.FlowNode;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@Schema(title = "流程-事件监听", description = "流程-事件监听")
public class FlowParamListener extends FlowParam {

    /**
     * 触发事件的node
     */
    private FlowNode node;

    /**
     * 触发的事件
     */
    private Event event;

    public FlowParamListener(FlowNode node, Event event) {
        this.setId(node.getFlowId());
        this.node = node;
        this.event = event;
    }
}
